package com.woniuxy.mapper;

import com.woniuxy.domain.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Update;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author XXX
 * @since 2021-05-12
 */
public interface UserMapper extends BaseMapper<User> {
    @Update("UPDATE t_user SET account=#{account}, user_name = #{userName}, sex = #{sex}, tel = #{tel}, e_mail = #{eMail} WHERE user_id = #{userId}")
//    boolean updateUsr(@Param(value = "user_id") int userId, @Param(value = "account") String account, @Param(value = "user_name")String userName, @Param(value = "sex") String sex, @Param(value = "tel") String tel, @Param(value = "e_mail") String eMail);
    boolean updateUsr(int userId, String account, String userName, String sex, String tel, String eMail);
}
